#ifndef TEST_H
#define TEST_H

#include <QObject>
#include <QtNetwork/QTcpServer>
#include <QtNetwork/QTcpSocket>
#include <iostream>

class test : public QObject
{
    Q_OBJECT
public:
    explicit test(QObject *parent = 0);

signals:

public slots:
    void Run(int port=20382);
    void processConnection();
    void processText();
private:
    int port;
    QTcpServer *listenSocket;
    QTcpSocket *readWriteSocket;
};

#endif // TEST_H
